﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserClass.aspx.cs" Inherits="blog_UserClass" %>

<%@ Register Assembly="MagicAjax" Namespace="MagicAjax.UI.Controls" TagPrefix="ajax" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>

    <form id="form1" runat="server">
        <ajax:AjaxPanel ID="AjaxPanel1" runat="server" Height="70px" Width="476px">
        <fieldset style="height: 64px; font-size: smaller;" >
            <legend >添加用户自定义文章分类</legend>
            <asp:Label ID="lblMessage" runat="server" Width="160px" BackColor="White"></asp:Label><br />
            <asp:Label ID="Label1" runat="server" Text="分类名称：" Width="80px"></asp:Label>
            <asp:TextBox ID="tbUserClassName" runat="server"></asp:TextBox>
            <asp:Button ID="btnAddUserClass" runat="server" OnClick="btnAddUserClass_Click" Text="加上去" /></fieldset>
        </ajax:AjaxPanel>
        <br />
        <br />
        <br />
        <ajax:AjaxPanel ID="AjaxPanel2" runat="server" Height="87px" Width="484px">
        <fieldset style="font-size: smaller; height: 62px; width: 465px;" >
            <legend >用户分类修改</legend>
            <asp:Label ID="lblmsgEdit" runat="server" BackColor="White" Width="160px"></asp:Label><br />
            <asp:DropDownList ID="ddlUserClassEdit" runat="server" DataSourceID="ObjectDataSource1" DataTextField="ClassName" DataValueField="ID">
            </asp:DropDownList>
            &nbsp; 更改为&nbsp;
            <asp:TextBox ID="tbUserClassEdit" runat="server"></asp:TextBox>&nbsp;<asp:Button
                ID="btnUserClassEdit" runat="server" Text="改过来" OnClick="btnUserClassEdit_Click" /></fieldset>
        </ajax:AjaxPanel>
        <br />
        <br />
        <br />
        <ajax:AjaxPanel ID="AjaxPanel3" runat="server" Height="69px" Width="485px">
        <fieldset style="font-size: smaller; height: 62px; width: 465px;">
            <legend >用户分类删除</legend>
            <asp:Label ID="lblmsgDel" runat="server" BackColor="White" Width="160px"></asp:Label><br />
            <asp:DropDownList ID="ddlUserClassDel" runat="server" DataSourceID="ObjectDataSource1" DataTextField="ClassName" DataValueField="ID">
            </asp:DropDownList>
            &nbsp;
            <asp:Button ID="btnUserClassDel" runat="server" OnClick="btnUserClassDel_Click" Text="不要了" /></fieldset>
        </ajax:AjaxPanel>
        <br />
        <br />
        <br />
        <ajax:AjaxPanel ID="AjaxPanel4" runat="server" Width="491px">
        <fieldset style="font-size: smaller; height: 62px; width: 465px;">
            <legend >用户分类合并</legend>
            <asp:Label ID="lblmsgMerge" runat="server" BackColor="White" Width="160px"></asp:Label><br />
            <asp:DropDownList ID="ddlUserClassMerge1" runat="server" DataSourceID="ObjectDataSource1"
                DataTextField="ClassName" DataValueField="ID">
            </asp:DropDownList>
            合并到
            <asp:DropDownList ID="ddlUserClassMerge2" runat="server" DataSourceID="ObjectDataSource1"
                DataTextField="ClassName" DataValueField="ID">
            </asp:DropDownList>
            <asp:Button ID="btnUserClassMerge" runat="server" Text="合一起" /></fieldset>
        </ajax:AjaxPanel>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetUserClassByUserID"
            TypeName="mborn.BLL.UserClassBLL">
            <SelectParameters>
                <asp:CookieParameter CookieName="ID" DefaultValue="0" Name="userID" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </form>
</body>
</html>
